﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PSE.Framework.Caching;
using PSE.Framework.Common.Validation;

namespace PSE.Framework.Service.ExceptionHandling
{
    public class ValidationErrorFactory
    {
        protected ValidationErrorFactory()
        {
        }

        public static ValidationError CreateValidationError(int errorNumber)
        {
            string errorMessage = ErrorMessage.RetrieveErrorMessage(errorNumber);

            return new ValidationError(errorNumber, errorMessage);
        }
    }
}
